//
//  TestProblem2037.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/29.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem2037: XCTestCase {

    var problem = Problem2037()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem2037_Case1() throws {
        XCTAssertEqual(problem.minMovesToSeat([3,1,5], [2,7,4]), 4)
    }
    
    func testProblem2037_Case2() throws {
        XCTAssertEqual(problem.minMovesToSeat([4,1,5,9], [1,3,2,6]), 7)
    }
    
    func testProblem2037_Case3() throws {
        XCTAssertEqual(problem.minMovesToSeat([2,2,6,6], [1,3,2,6]), 4)
    }
}
